#include "Logger.h"


Logger::Logger(void)
	:m_Logger("RunningLog.log")
{
}


Logger::~Logger(void)
{
	if(m_Logger.good())
		m_Logger.close();
}

Logger* Logger::Instance()
{
	static Logger* instance = NULL;
	if(!instance)
		instance = new Logger();
	return instance;
}

void Logger::LogString( const std::string& str )
{
	m_Logger<<str<<std::endl;
}
